<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<button>点击</button>
	</body>
	<script type="text/javascript">
		(function (user) {
			user.GetNum = function  (extras,callback) {
				alert(extras)
				return callback(user.GetCallback)
			};
			user.GetCallback = function  (e) {
				alert(e)
				
			}
			
		})(window.app = {})
		document.querySelector("button").onclick = function  (e) {
//			e.stopPropagation()
			app.GetNum("测试",function  (e) {
				e("测试demo")
			})
		}
		
	</script>
</html>
